import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const projectManager: AppRouteModule = {
  path: '/projectManager',
  name: 'projectManager',
  component: LAYOUT,
  redirect: '/projectManager/myProject',
  meta: {
    orderNo: 3,
    icon: 'ion:ios-paper-outline',
    title: t('routes.demo.projectManager.projectManager'),
  },
  children: [
    {
      path: 'myProject',
      name: 'MyProject',
      meta: {
        title: t('routes.demo.projectManager.myProject'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/projectManager/index.vue'),
    },
    {
      path: 'projectDetail',
      name: 'ProjectDetail',
      meta: {
        title: t('routes.demo.projectManager.projectDetail'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/projectManager/projectDetail.vue'),
    },
    {
      path: 'archiveProject',
      name: 'ArchiveProject',
      meta: {
        title: t('routes.demo.projectManager.archiveProject'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/projectManager/archiveProject.vue'),
    },
    {
      path: 'shareProject',
      name: 'ShareProject',
      meta: {
        title: t('routes.demo.projectManager.shareProject'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/projectManager/shareProject.vue'),
    },
    {
      path: 'projectTemplate',
      name: 'ProjectTemplate',
      meta: {
        title: t('routes.demo.projectManager.projectTemplate'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/projectManager/projectTemplate/index.vue'),
    },
    {
      path: 'detailTemModal',
      name: 'DetailTemModal',
      meta: {
        title: t('routes.demo.projectManager.detailTemModal'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/projectManager/projectTemplate/detailTemModal.vue'),
    },
    {
      path: 'projectReport',
      name: 'ProjectReport',
      meta: {
        title: t('routes.demo.projectManager.projectReport'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/projectManager/projectReport/index.vue'),
    },
  ],
};

export default projectManager;
